<template>
  <div class="fuchao" v-for="item in list" :key="item._id">
    <!-- 照片 -->
    <div class="left">
      <img :src="item.imgurl" alt="" />
    </div>
    <!-- 右侧详情 -->
    <div class="right">
      <div class="top">
        <div class="name">
          <div class="shang">
            <div class="sh">
              <div class="le">{{ item.name }}</div>
              <div class="ri">{{ item.dications }}</div>
            </div>
            <div class="bot">浙江大学附属第二医院</div>
          </div>
          <div class="xia">
            <span class="span1">
              浙江大学医学院附属第二医院 * {{ item.indications }}
            </span>
          </div>
        </div>
        <!-- 擅长 -->
        <div class="jieshao">擅长:{{ item.information }}</div>
        <!-- 咨询 -->
        <div class="zx">
          <div class="le">
            <div class="l1">
              <span class="span1">咨询</span>
              <span class="span2">{{ item.service }}</span>
            </div>
            <div class="l2">
              <span class="span1">评分</span>
              <span class="span2">{{ item.score }}分</span>
            </div>
          </div>
          <div class="ri">
            <div class="r1">¥69</div>
            <div class="r2">立即咨询</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
// import { useStore } from "vuex";
import { inject } from "vue";
export default {
  setup() {
    const list = inject("studio");

    return {
      list,
    };
  },
};
</script>
<style lang="less" scoped>
.fuchao {
  border-bottom: 1px solid #e9dcdc;
  padding: 15px 10px;
  width: 100%;
  display: flex;
  .left {
    width: 54px;
    height: 54px;
    margin-right: 15px;
    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }
  .right {
    flex: 1;
    .name {
      margin-top: 5px;
      height: 37px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .shang {
        // width: 140px;
        display: flex;
        justify-content: space-between;
        .sh {
          display: flex;
          .le {
            // width: 56px;
            margin-right: 8px;
            height: 17px;
            font-size: 18px;
            font-weight: bold;
            color: #333333;
            line-height: 18px;
          }
          .ri {
            width: 70px;
            height: 13px;
            font-size: 12px;
            font-weight: 450;
            color: #333333;
            line-height: 18px;
          }
        }

        .bot {
          width: 140px;
          height: 20px;
          text-align: center;
          font-size: 11px;
          font-weight: bold;
          color: #fefefe;
          line-height: 20px;
          background: linear-gradient(139deg, #ffc36d, #ff9c3e);
          border-radius: 20px 0px 0px 20px;
        }
      }
      .xia {
        display: flex;

        height: 14px;
        .span1 {
          height: 11px;
          font-size: 12px;
          font-weight: 500;
          color: #333333;
          line-height: 18px;
        }
      }
    }
    .jieshao {
      margin-top: 15px;
      margin-bottom: 10px;
      width: 282px;
      height: 36px;
      font-size: 13px;
      font-weight: 500;
      color: #333333;
      line-height: 20px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
  }
  .zx {
    margin-top: 15px;
    width: 282px;
    display: flex;
    justify-content: space-between;
    .le {
      display: flex;
      align-items: center;
      .l1 {
        // width: 68px;
        height: 10px;
        font-size: 10px;
        font-weight: 450;
        color: #333333;
        line-height: 15px;
        .span1 {
          height: 20px;
          font-size: 10px;
          font-weight: bold;
          color: #333333;
          opacity: 0.8;
        }
        .span2 {
          color: #f79c10;
          margin-left: 3px;
          opacity: 0.8;
        }
      }
      .l2 {
        margin-left: 10px;
        line-height: 20px;
        .span1 {
          opacity: 0.8;
          display: inline-block;
          // width: 25px;
          height: 20px;
          font-size: 10px;
          font-weight: bold;
          color: #333333;
        }
        .span2 {
          opacity: 0.8;
          margin-left: 3px;
          display: inline-block;
          // width: 20px;
          height: 20px;
          font-size: 10px;
          font-weight: bold;
          color: #f79f16;
        }
      }
    }
    .ri {
      display: flex;
      .r1 {
        width: 43px;
        height: 27px;
        background: #ffffff;
        border: 2px solid #17a2ff;
        border-radius: 12px 0px 0px 12px;
        font-size: 15px;
        font-weight: bold;
        color: #fc5653;
        line-height: 23px;
        text-align: center;
      }
      .r2 {
        width: 70px;
        height: 27px;
        background: #17a2ff;
        border: 2px solid #17a2ff;
        border-radius: 0px 12px 12px 0px;
        font-size: 12px;
        font-weight: bold;
        color: #ffffff;
        line-height: 23px;
        text-align: center;
      }
    }
  }
}
</style>
